package kuoge.practice.ch.delayqueue.consumer;

import com.ch.delayqueue.core.Message;
import com.ch.delayqueue.starter.DelayQueueCallback;
import com.ch.delayqueue.starter.DelayQueueConsumer;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@DelayQueueConsumer(namespace = NamespaceConstants.ORDER_PAY_TIMEOUT)
public class OrderDelayQueueCallback implements DelayQueueCallback {
    @Override
    public void OnDelayMessageTriggered(Message message) {
        log.info("order-pay-timeout namespace OnDelayMessageTriggered, message:{}", message);
    }
}
